package com.jjxy.tank;

import java.awt.Graphics;
import java.awt.Image;
import java.awt.Toolkit;
import java.security.PublicKey;

public class MyTank extends Tank{

	private static Image[] tankImg;
	
	static {
		tankImg = new Image[4];
		tankImg[0] = Toolkit.getDefaultToolkit().createImage("res/u.png");
		tankImg[1] = Toolkit.getDefaultToolkit().createImage("res/d.png");
		tankImg[2] = Toolkit.getDefaultToolkit().createImage("res/l.png");
		tankImg[3] = Toolkit.getDefaultToolkit().createImage("res/r.png");
		

	}
	
	public MyTank(int x,int y,int dir) {
		super(x, y, dir);
	}
	
	@Override
	public void drawImgTank(Graphics g){
		g.drawImage(tankImg[getDir()], getX()-RADIUS, getY()-RADIUS,null);

	}

}
